import com.dmotiko.general.*
import com.dmotiko.chabeli.*
import com.dmotiko.util.*

class ChabeliLogo
extends BaseClip {
	
	private var fadeIn:Function;
	
	private function ChabeliLogo() {
		super();
		MovieEffects.fadeIn();
		this._alpha = 0;
		this._x = 61;
		this._y = 81;
		this.fadeIn( { rate: 5, bind: this, listener: showEnd } );
	}
	
	private function showEnd() {
		dispatchEvent( { target: this, type: BaseClipEvent.CHANGED } );
		this.onRelease = function() {
			ChabeliSite.getApp().setSection( ChabeliSite.HOME );
		}
	}
	
}